<?php
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this \yii\web\View */

$controller = Yii::$app->controller;
?>

<div id="sidebar" class="sidebar responsive">
	<div class="sidebar-shortcuts" id="sidebar-shortcuts">
		<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
			<?php echo Html::a('<i class="ace-icon fa fa-plus"></i>', ['/'], ['class' => 'btn btn-success']); ?>
			<?php echo Html::a('<i class="ace-icon fa fa-book"></i>', ['/'], ['class' => 'btn btn-info']); ?>
			<?php echo Html::a('<i class="ace-icon fa fa-users"></i>', ['/user/admin/index'], ['class' => 'btn btn-warning']); ?>
			<?php echo Html::a('<i class="ace-icon fa fa-signal"></i>', ['/'], ['class' => 'btn btn-danger']); ?>
		</div>
		<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
			<?php echo Html::a('', ['/'], ['class' => 'btn btn-success']); ?>
			<?php echo Html::a('', ['/'], ['class' => 'btn btn-info']); ?>
			<?php echo Html::a('', ['/user/admin/index'], ['class' => 'btn btn-warning']); ?>
			<?php echo Html::a('', ['/'], ['class' => 'btn btn-danger']); ?>
		</div>
	</div>

	<ul class="nav nav-list">
		<li class=""><a href="<?= Yii::$app->homeUrl ?>"><i class="menu-icon fa fa-tachometer"></i><span class="menu-text"> Dashboard </span></a> <b class="arrow"></b></li>

		<li class="<?php echo $controller && $controller->id == 'entity' ? 'open active' : '' ?>">
			<a href="#" class="dropdown-toggle"> <i class="menu-icon fa fa-key"></i> <span class="menu-text"> Entity </span> <b class="arrow fa fa-angle-down"></b></a> <b class="arrow"></b>
			<ul class="submenu">
				<li class="<?php echo $controller && $controller->id == 'entity' && $controller->action->id == 'list' ? 'active' : '' ?>">
					<a href="<?= Url::to(['/entity/list']) ?>"> <i class="menu-icon fa fa-caret-right"></i> Entity List</a> <b class="arrow"></b>
				</li>
				<li class="<?php echo $controller && $controller->id == 'entity' && $controller->action->id == 'create' ? 'active' : '' ?>">
					<a href="<?= Url::to(['/entity/create']) ?>"> <i class="menu-icon fa fa-caret-right"></i> Entity Create</a> <b class="arrow"></b>
				</li>
			</ul>
		</li>

	</ul>
	<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
		<i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
	</div>
	<script>
		try {
			ace.settings.check('sidebar', 'collapsed');
		} catch (e) {
		}
	</script>
</div>

